<template>
  <div>
    <h3>自定义指令集和</h3>
    <el-form ref="form" class='form-container' autocomplete='off' :model="formModel" label-width="120px">
      <el-form-item label='邮箱'>
        <el-input autocomplete='off' v-email.10.a='go' v-model="formModel.email" placeholder="请输入邮箱"></el-input >
      </el-form-item>
      <el-form-item label='手机号'>
        <el-input autocomplete='off' v-model="formModel.phone" placeholder="手机号"></el-input>
      </el-form-item>
      <el-form-item label='中文姓名'>
        <el-input autocomplete='off' v-model="formModel.zhName" placeholder="中文姓名"></el-input >
      </el-form-item>
       <el-form-item label='身份证号码'>
        <el-input autocomplete='off' v-model="formModel.idcard" placeholder="身份证号码"></el-input >
      </el-form-item>
    </el-form>

  </div>
</template>

<script>
export default {
  name: 'index',
  data() {
    return {
      formModel: {
        email: '',
        phone: '',
        zhName: '',
        idcard: ''
      }

    }
  },
  methods: {
    go() {
      return 1
    }
  }
}
</script>

<style lang="less" scoped>
.form-container {
  /deep/ label {
    color: #fff;
  }
}
</style>
